import pygame


class StartScreen:
    def __init__(self, screen):
        self.screen = screen

    def run(self):
        font = pygame.font.SysFont("Arial", 48)
        while True:
            self.screen.fill((0, 0, 0))
            text = font.render("PRESS SPACE START", True, (255, 255, 255))
            self.screen.blit(text, (200, 250))
            pygame.display.flip()

            for event in pygame.event.get():
                if event.type == pygame.QUIT:
                    exit()
                if event.type == pygame.KEYDOWN and event.key == pygame.K_SPACE:
                    return "play"
